import request from '@/utils/request'

const deliveryApi = {
  // 发货列表
  getDeliveryList: (params) => {
  	return request({
      url:`/trade/order-logistics/page?orderId=${params.orderId}&pageNo=${params.pageNo}&pageSize=${params.pageSize}`,
  		method: 'GET'
  	})
  },
  
  // 新增发货
  addDelivery: (data) => {
  	return request({
      url:`/trade/order-logistics/create`,
  		method: 'POST',
      data
  	})
  },
  // 快递免单识别
  getFreeLabel: (imgUrl) => {
    return request({
      url:`/trade/order-logistics/waybill?imageUrl=${imgUrl}`,
      method: 'POST'
    })
  },
}
export default deliveryApi